﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FittyWars.BordUtils
{
    class Worm : Creature
    {
        public Random rand;
        private StringBuilder sb;

        public Worm()
            : base()
        {
            rand = new Random(0xF1772);
        }

        public override void Think(List<Element> nearElements)
        {
            /*foreach (Element elem in nearElements)
            {
                if (elem.GetGameElement() == GameManager.GameElement.Leaf)
                {
                    double dx = Posx - elem.Posx;
                    double dy = Posy - elem.Posy;
                    Direction = Math.Atan(dy / dx);
                    if (dx > 0) Direction += Math.PI;
                    return;
                }
            }
            Direction = rand.NextDouble() * 2 * Math.PI;*/
        }
    }
}
